package gdt.entity;

import java.io.Serializable;
import javax.persistence.*;
import static javax.persistence.FetchType.LAZY;

/**
 * Entity that represents an announcement visible for the
 * members of a group that are assigned to a project
 */

@Entity
public class ProjectAnnouncement extends Announcement implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@ManyToOne(fetch=LAZY)
	private Project project;

	
	public ProjectAnnouncement() {
		super();
	}   
	
	// ********************** Accessor Methods ********************** //
	
	public Project getProject() {
		return this.project;
	}

	public void setProject(Project project) {
		this.project = project;
	}
   
}
